<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>form-字段修饰符</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>

<div id="app">
    <input v-model.number='age' type='number'>
    <input type="button" @click="handle" value="点击">
    <br>
    <input type="text" v-model.trim="info">
    <br>
    <input type="text" v-model.lazy="msg">
    <span>{{msg}}</span>
</div>
<script type="text/javascript">
    var app=new Vue({
        el:'#app',
        data:{
            age:'',
            info:'',
            msg:''
        },
        methods:{
            handle:function(){
                //不加.number会字符串拼接
                console.log(this.age+10);

                console.log(this.info,this.info.length);
            }
        }
    })
</script>

</body>
</html>